<%= error_messages_for 'ticket_reply' %>
<%= hidden_field 'ticket_reply', 'id' %>
	<tr>
		<th>Priority</th>
		<td><%= select 'ticket_reply', 'priority', Ticket.priorities.collect { |key, value| [key.titleize, value]} %></td>
		<td></td>
	</tr>
	<tr>
			<th>Status</th>
			<td><%= select 'ticket_reply', 'status', @ticket_reply.ticket.project.edit_states(current_user).collect { |key, value| [key.titleize, value]} %></td>
			<td></td>
	</tr>
	<tr>
			<th>Type</th>
			<td><%= select 'ticket_reply', 'ticket_type', @ticket_reply.ticket.project.categories.collect { |c| [c.name.titleize, c.id]} %></td>
			<td></td>
	</tr>
	<tr>
			<th>Owner</th>
			<td><%= select 'ticket_reply', 'owner_id',  @ticket_reply.ticket.project.members.collect {|u| [u.login, u.id]}, {:include_blank => true} %>	</td>
			<td></td>
	</tr>
	<tr>
			<th>Time spend</th>
			<td><%= text_field 'ticket_reply', 'hours' %>	</td>
			<td></td>
	</tr>
	<tr>
		<th>Body</th>
		<td><%= text_area :ticket_reply, 'body' %></td>
		<td>
			<%= some_html_explanation(); %>
		</td>
	</tr>
